<form action="${ctx}/platManager/modifyPassWord" method="post" id="resetFormID" >
	<input type="hidden" id="renderingPrompt" value="1" />
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label><span style="color: red">*</span>当前密码：</label> 
			<input class="form-control" type="password" name="currentPassword" placeholder="请输入当前密码" required />
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label><span style="color: red">*</span>新密码：</label> 
			<input class="form-control" type="password" name="newPassword" placeholder="请输入新密码" required id="newPassword"/>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label><span style="color: red">*</span>确认密码：</label> 
			<input class="form-control" type="password" name="confirmPassword" placeholder="请输入确认密码" required equalTo="#newPassword"/>
		</div>
	</div>
	<script type="text/javascript">
		$("#resetFormID").validate({
	        rules: {
	        	currentPassword : {
	        		required : true,
	        		renderingPrompt : true
	            }
	        },
	        messages: {
	        }
		});
		
		$.validator.addMethod("renderingPrompt", function(value, element) {
			var renderingPrompt = $("#renderingPrompt").val();
			return renderingPrompt == '1' ? true : false;
		}, "当前密码不正确");
	</script>
</form>
